#define _CRT_SECURE_NO_WARNINGS 1
int findMaxConsecutiveOnes(int* nums, int numsSize) {
    long long i = 0;
    long long count = 0;
    long long max = 0;
    for (i = 0; i < numsSize; i++)
    {
        if (nums[i] == 1)
        {
            count++;
        }
        else
        {
            if (count > max)
            {


                max = count;
            }
            count = 0;
        }
    }
    if (count > max)
    {
        return count;
    }
    return max;

}